<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <title>Entrada</title>
        <h:outputStylesheet name="css/default.css"/>
        <style type="text/css">
            body {
                margin: 15px;
            }
        </style>
    </h:head>
    <h:body>
        <h:form prependId="false">
            <p:messages id="messages"/>
            <h:panelGrid border="0" columns="2">
                <h:outputLabel value="Login:"/>
                <h:inputText value="#{loginJsfBean.username}"/>
                <h:outputLabel value="Senha:"/>
                <h:inputSecret value="#{loginJsfBean.senha}"/>
                <h:outputLabel/>
                <h:commandButton  value="Entrar"  action="#{loginJsfBean.doLogin}"/>
            </h:panelGrid>            

        </h:form>
        <br/>
        Utilize os usuários abaixo para teste<br/><br/>
        Login: <b>admin</b> / Senha: <b>admin</b> (Usuário administrador)<br/>
        Login: <b>user</b> / Senha: <b>user</b> (Usuário comum)


    </h:body>
</html>

